home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 August: Tool Chest / Dev.CD Aug 94.toast / New System Software Extensions / OpenDoc A6 / OpenDoc Parts Framework / OPF / Found / FWCommon / Include / FWRCDefi.h < prev    next >
Encoding:
Text File  |  1994-04-21  |  4.1 KB  |  156 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                FWRCDefi.h
  4. //    Release Version:    $ 1.0d1 $
  5. //
  6. //    Creation Date:        3/25/94
  7. //
  8. //    Copyright:    Â© 1994 by Apple Computer, Inc., all rights reserved.
  9. //
  10. //========================================================================================
  11.  
  12. #ifndef FWRCDEFI_H
  13. #define FWRCDEFI_H
  14.  
  15. /****************************************/
  16. /* Stuff that really belongs in FWRCDefi.H */
  17. /****************************************/
  18.  
  19. /* OPF target platforms */
  20. #define RCPF_NONE -1
  21. #define RCPF_MAC   0
  22. #define RCPF_OS2   1
  23. #define RCPF_WIN   2
  24.  
  25. /*******************************************************************/
  26. /* Stuff that is private between the OPF resource compiler and */
  27. /* a OPF resource file (that is, a .R file). This information  */
  28. /* is not defined to a OPF part.                                   */
  29. /*******************************************************************/
  30.  
  31. #if defined __PLATFORM__  || !defined OPF_INCLUDED
  32.  
  33.    /* these are the predefined types of resources */
  34.    #define NOKIND     (-1)
  35.    #define ACCELTABLE 1
  36.    #define ICON 2
  37.    #define BITMAP 3
  38.    #define CURSOR 4
  39.    #define CODEPAGE 5
  40. #ifdef OBSOLETE
  41.    #define DLG 6
  42.    #define DIALOG 6
  43.    #define FONT 7
  44.    #define FRAME 8
  45. #endif
  46.    #define MENU 9
  47.    #define MSGTABLE 10
  48.    #define STRTABLE 11
  49.    #define CUSTOMTYPE 12
  50.    #define MULTISTRING 13
  51.  
  52.    /* these are the load and memory option values */
  53.    #define PRELOAD 1
  54.    #define LOADONCALL 0
  55.    #define STATIC 2
  56.    #define RELOCATABLE 0
  57.    #define PURGEABLE 4
  58.    
  59. #ifdef FW_BUILD_WIN
  60.    /* accelerator table stuff */
  61.    #undef  BEDAT_SHIFT
  62.    #define BEDAT_SHIFT 1
  63.    #undef  BEDAT_ALT
  64.    #define BEDAT_ALT 2
  65.    #undef  BEDAT_OPTION
  66.    #define BEDAT_OPTION 4
  67.    #undef  BEDAT_CONTROL
  68.    #define BEDAT_CONTROL 8
  69.    #undef  BEDAT_APPLE
  70.    #define BEDAT_APPLE 16
  71.    #undef  BEDAT_CHAR
  72.    #define BEDAT_CHAR 128
  73.    #undef  BEDAT_VIRTUALKEY
  74.    #define BEDAT_VIRTUALKEY 32
  75.    #undef  BEDAT_SCANCODE
  76.    #define BEDAT_SCANCODE 64
  77.    #undef  BEDAT_CVS
  78.    #define BEDAT_CVS (BEDAT_CHAR | BEDAT_VIRTUALKEY | BEDAT_SCANCODE)
  79.    #undef  BEDAT_COMMAND
  80.    #define BEDAT_COMMAND 0
  81.    #undef  BEDAT_SYSCOMMAND
  82.    #define BEDAT_SYSCOMMAND 256
  83.    #undef  BEDAT_HELP
  84.    #define BEDAT_HELP 512
  85.    #undef  BEDAT_HS
  86.    #define BEDAT_HS (BEDAT_SYSCOMMAND | BEDAT_HELP)
  87. #endif
  88.  
  89. #ifdef FW_BUILD_WIN
  90.  
  91. /* Virtual keycodes—What to do with these?*/
  92.  
  93. #ifndef VK_F1
  94. #define VK_F1 0x70
  95. #endif
  96. #ifndef VK_LBUTTON
  97. #define VK_LBUTTON 0x01
  98. #endif
  99. #ifndef VK_TAB
  100. #define VK_TAB 0x09
  101. #endif
  102. #define BEDVK_ALT                    0x12
  103. #define BEDVK_APPLE                    BEDVK_ALT
  104. #define BEDVK_OPTION                BEDVK_ALT
  105. #define BEDVK_BREAK                    0x00
  106. #define BEDVK_BUTTON1                VK_LBUTTON
  107. #define BEDVK_BUTTON2                (VK_LBUTTON + 3)
  108. #define BEDVK_BUTTON3                (VK_LBUTTON + 1)
  109. #define BEDVK_CAPSLOCK                0x00                /* we get no msg for this */
  110. #define BEDVK_TAB                    VK_TAB
  111. #define BEDVK_RETURN                (VK_TAB + 2)
  112. #define BEDVK_CLEAR                    (VK_TAB + 3)
  113. #define BEDVK_ENTER                    (VK_TAB + 4)
  114. #define BEDVK_SHIFT                    (VK_TAB + 7)
  115. #define BEDVK_CONTROL                (VK_TAB + 8)
  116. #define BEDVK_PAUSE                    (VK_TAB + 10)
  117. #define BEDVK_ESCAPE                (VK_TAB + 18)
  118. #define BEDVK_PAGEUP                (VK_TAB + 24)
  119. #define BEDVK_PAGEDOWN                (VK_TAB + 25)
  120. #define BEDVK_END                    (VK_TAB + 26)
  121. #define BEDVK_HOME                    (VK_TAB + 27)
  122. #define BEDVK_LEFT                    (VK_TAB + 28)
  123. #define BEDVK_UP                    (VK_TAB + 29)
  124. #define BEDVK_RIGHT                    (VK_TAB + 30)
  125. #define BEDVK_DOWN                    (VK_TAB + 31)
  126. #define BEDVK_PAGELEFT
  127. #define BEDVK_PAGERIGHT
  128. #define BEDVK_PRINTSCREEN            (VK_TAB + 33)
  129. #define BEDVK_INSERT                (VK_TAB + 36)
  130. #define BEDVK_DELETE                (VK_TAB + 37)
  131. #define BEDVK_HELP                    (VK_TAB + 38)
  132. #define BEDVK_NUMBERLOCK            0x90
  133. #define BEDVK_SCROLLLOCK            (BEDVK_NUMBERLOCK + 1)
  134.  
  135. #define BEDVK_F1                    VK_F1
  136. #define BEDVK_F2                    (VK_F1+1)
  137. #define BEDVK_F3                    (VK_F1+2)
  138. #define BEDVK_F4                    (VK_F1+3)
  139. #define BEDVK_F5                    (VK_F1+4)
  140. #define BEDVK_F6                    (VK_F1+5)
  141. #define BEDVK_F7                    (VK_F1+6)
  142. #define BEDVK_F8                    (VK_F1+7)
  143. #define BEDVK_F9                    (VK_F1+8)
  144. #define BEDVK_F10                    (VK_F1+9)
  145. #define BEDVK_F11                    (VK_F1+10)
  146. #define BEDVK_F12                    (VK_F1+11)
  147. #define BEDVK_F13                    (VK_F1+12)
  148. #define BEDVK_F14                    (VK_F1+13)
  149. #define BEDVK_F15                    (VK_F1+14)
  150. #endif
  151.  
  152. #endif
  153.  
  154.  
  155. #endif
  156.